﻿@model EventRetrospectModel
@{
    ViewBag.Title = "活动回顾";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var user = ViewBag.User as User;
}
@section Direct{

    @if (user.IsAdministrator())
    {
        <div class="adr">
            <ul>
                <li>@Html.ActionLink("返回", "Detail", new { id = Model.Id })
                </li>
                <li>@Html.ActionLink("照片和回顾", "EditRetrospect", new { id = Model.Id })
                </li>
                @if (Model.IsClosed)
                {
                    <li>@Html.ActionLink("激活", "Activate", new { id = Model.Id })
                    </li>
                }
                else
                {
                    <li>@Html.ActionLink("关闭", "Close", new { id = Model.Id })
                    </li>
                }
                @if (Model.IsHidden)
                {
                    <li>@Html.ActionLink("显示", "Show", new { id = Model.Id })
                    </li>
                }
                else
                {
                    <li>@Html.ActionLink("隐藏", "Hide", new { id = Model.Id })
                    </li>
                }
            </ul>
        </div>
    }
}
<section class="ec-rs">
    <aside>
        <header>
            其他精彩活动回顾
        </header>
        <div>
            <ul>
                <li><a href="/">
                    <div>
                        <img src="~/Content/images/1440x400.jpg" alt="" />
                    </div>
                </a></li>
                <li><a href="/">
                    <div>
                        <img src="~/Content/images/1440x400.jpg" alt="" />
                    </div>
                </a></li>
            </ul>
        </div>
    </aside>
    <div class="ec-rs-0">
        <header>
            <h2>@Model.Title</h2>
        </header>
    </div>
    <div class="ec-rs-1">
        <h3>精彩回顾</h3>
        <pre class="article">@Html.Raw(Model.RetrospectHTML)</pre>
    </div>
</section>
